package top.hekun.study.tool;

import com.jacob.com.Dispatch;

/**
 * 大纲级别的相关设置
 *
 * @Author: 贺坤
 * @Date: 2021/10/15 8:40
 */
public class OutlineLevelTool {
    /**
     * 对段落设置大纲级别
     *
     * @param paragraphFormat  段落对象
     * @param outlineLevelEnum 大纲级别
     */
    public void setUp(Dispatch paragraphFormat, OutlineLevelEnum outlineLevelEnum) {
        // 设置大纲级别
        Dispatch.put(paragraphFormat, "OutlineLevel", outlineLevelEnum.getVariant());
    }
}
